package yun2.shuxuesiwei;

import java.util.Scanner;

public class Gbs {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int ret = gcd(a,b);
		System.out.println((a*b)/gcd(a,b));
		
	}
	
	/**
	 * 递归, 默认a大于b
	 * @param a
	 * @param b
	 * @return
	 */
	private static int gcd(int a, int b) {
		//return b==0?a:gcd2(b,a%b);
		
		if(b==0) {
			return a;
		}else {
			return gcd(b,a%b);
		}
		
	}

}
